added runnable and timertask factories