extract number of parameters for signature, added setup for functional testing