improved logging
basic runtime handling