implemented check_by_default function, implemented router function to have hands (APIs), some bug fixing