fixed scoping issues in LibratoHandler