change signature to HandlerFunc
add actions handler test
add handler map